﻿#include "styledtabwidget.h"

static const char* BASE_STYLESHEET = R"(
*{
font-size: 9pt;
}
QTabWidget::pane
{
border: none;
border-top : 2px solid rgba(226, 226, 226, 1);
position: absolute;
top: -2px;
background: #ffffff;
}
QTabWidget QScrollArea
{
border: 1px solid rgba(226, 226, 226, 1);
}
QTabWidget QTabBar::tab
{
border: none;
text-align : center;
color : rgba(78, 89, 105, 1);
font-size : 12px;
padding: 8px 12px;
}
QTabWidget QTabBar::tab:selected
{
border-bottom : 2px solid rgba(83, 123, 173, 1);
color : rgba(83, 123, 173, 1);
}
QTabWidget QTabBar::tab:hover
{
border-bottom : 2px solid rgba(83, 123, 173, 1);
color : rgba(83, 123, 173, 1);
}
QTabWidget QWidget[tabType="tabPage"]
{
background : rgba(250, 250, 250, 1);
}
)";

CStyledTabWidget::CStyledTabWidget(QWidget* parent)
    : QTabWidget(parent)
{
    setObjectName("CStyledTabWidget");
    setStyleSheet(BASE_STYLESHEET);
}
